package com.hpe.wx.performance.mongo.statusrecord.service;

import java.io.IOException;
import java.util.List;

import javax.management.AttributeNotFoundException;
import javax.management.InstanceNotFoundException;
import javax.management.MBeanException;
import javax.management.MalformedObjectNameException;
import javax.management.ReflectionException;

import com.hpe.wx.performance.mongo.statusrecord.domain.StatusRecord;

public interface StatusRecordService {
	
	public void addARecord2DB(String jmxId) throws MalformedObjectNameException, AttributeNotFoundException, InstanceNotFoundException, MBeanException, ReflectionException, IOException;
	
	public StatusRecord getLastRecord(String jmxId);
	
	public List<StatusRecord> getAllRecord();
	
	public List<StatusRecord> getRecordBetween(Long start, Long end);
	
	public List<StatusRecord> getRecordAfter(Long start);
}
